package com.fashion.server.common;

public class PagerHelper implements java.io.Serializable {

	private int current = 1;//page;// 当前页
	private int size=20;//rows;// 每页显示记录数
	private String sortColumn;// 排序字段
	private Integer sortOrder;// asc=1/desc=2

	public int getStart(){
		if(current == 0){
			current = 1;
		}
		return (current-1) * size;
	}
	
	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getCurrent() {
		return current;
	}

	public void setCurrent(int current) {
		this.current = current;
	}

	public String getSortColumn() {
		return sortColumn;
	}

	public void setSortColumn(String sortColumn) {
		this.sortColumn = sortColumn;
	}

	public Integer getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	
}
